package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDTO;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


public interface AdSensitiveService extends IService<AdSensitive> {

    /**
     * 敏感词查询
     * @param sensitiveDTO
     * @return
     */
    ResponseResult queryList(SensitiveDTO sensitiveDTO);

    /**
     * 敏感词添加
     * @param adSensitive
     * @return
     */
    ResponseResult insert(AdSensitive adSensitive);

    /**
     * 敏感词修改
     * @param adSensitive
     * @return
     */
    ResponseResult updateName(AdSensitive adSensitive);

    /**
     * 敏感词地喊出
     * @param id
     * @return
     */
    ResponseResult delete(Integer id);

    /**
     * 查询敏感词列表
     * @return
     */
     ResponseResult<List<String>> selectAllSensitives();
}
